	<div class="colCenter">
		<h3 class="title"><?php echo $this->lang->line('contact') ?></h3>
		<div class="box-cart">
			<script type="text/javascript">
				function order_contact() {
					window.location.href = '<?php echo base_url() ?>contact/order';
				}
			</script>
			
			<form action="<?php echo link_main( 'cart' ); ?>" method="post">			
				<table cellpadding="6" cellspacing="1" style="width:100%" border="1">				
					<tr>
						<th width="12%" style="text-align: center;padding-left: 0">Số lượng</th>
						<th>Tên sản phẩm</th>
						<th width="20%">Đơn giá</th>
						<th width="20%">Thành tiền</th>
					</tr>				
					<?php 
										
						$i 		= 1; 
						$row 	= '';
						
						foreach( $this->cart->contents() as $items ):
							
							echo '<tr>';
								echo '<td style="text-align: center">';
									echo '<input type="hidden" value="'. $items['rowid'] .'" name="'. $i .'rowid" />';
									echo '<input class="text" type="text" value="'. $items['qty'] .'" name="'. $i .'qty" size="3" />';
								echo '</td>';
								
								$name = $this->duclinh_model->get_detail( $this->langid, $items['id'], 'product' );
								if ( $name )									
									echo '<td>'. $name['name'] .'</td>';
								else
									echo '<td></td>';
								
								echo '<td>'. $this->cart->format_number( $items['price'] ) .'</td>';
								echo '<td>'. $this->cart->format_number( $items['subtotal'] ) .'</td>';
							echo '</tr>';
							
							$i++;
							
						endforeach;
						
						echo $row;
					?>
														
					
					<tr>
						<td colspan="2"><input type="submit" value="Cập nhật" name="submit" /> <input type="button" value="Đặt hàng" name="order" onclick="order_contact()" /> <input type="hidden" value="<?php echo $i ?>" name="total"/></td>
						<td class="right"><strong>Tổng</strong></td>
						<td class="right"><?php echo $this->cart->format_number($this->cart->total()); ?> VND</td>
					</tr>				
				</table>
			</form>
		</div>